/**
 * @description  : 电子烟
 * @descriptionDetail : 电子烟
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2022-10-03 14:53:30
 */
import apiUrl from "@/common/api_urls/eCigar";
import reqHelper from "@/common/reqHelper";
import { PATHROOT, } from '../../common/path.config.js';

export default {
  /**
   * 文件上传地址
   */
  uploadFile: apiUrl.common.uploadFile,
  /**
   * 删除文件
   */
  deleteFile: apiUrl.common.deleteFile,
  /**
   * 根据bizId查询文件
   * @returns {*}
   */
  findFilesByBizId(year,bizId) {
    return reqHelper.postForm({year:year,bizId:bizId,}, apiUrl.common.findFilesByBizId);
  },
  /**
   * 根据fileId查询文件
   * @returns {*}
   */
  findFileByFileId(fileId) {
    return reqHelper.postForm({fileId:fileId,}, apiUrl.common.findFileByFileId);
  },
  /**
   * 根据countryCode查询区划信息
   * @returns
   */
  getAreaByCountryCode(countryCode) {
    return reqHelper.postForm({countryCode:countryCode,},  apiUrl.common.getAreaByCountryCode);
  },
  /**
   * 获取行政区划信息(省市区)
   * @returns
   */
  getAreaTreeAll() {
    return reqHelper.postForm({},  apiUrl.common.getAreaTreeAll);
  },
  /**
   * 根据统一信用代码获取工商营业执照信息
   * @returns
   */
  getBusLicInfo(buId) {
    return reqHelper.postForm({buId:buId,},  apiUrl.common.getBusLicInfo);
  },
  getBusLicInfoByRetailerUuid(retailerUuid) {
    return reqHelper.postForm({retailerUuid:retailerUuid},  apiUrl.common.getBusLicInfoByRetailerUuid);
  },
  baseUrl: PATHROOT.BASE,
};